using System;
using System.Collections.Generic;

namespace InvestmentIntelligence.DbModel.Models
{
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    [Table("Parameters", Schema = "Settings")]
    public class Parameter
    {
        [Key]
        public int Id { get; set; }
        public System.DateTime Created { get; set; }
        public Nullable<int> UserId { get; set; }
        
        [MaxLength(1024)]
        public string Type { get; set; }
        public string Value { get; set; }

        [ForeignKey("UserId")]
        public User User { get; set; }
    }
}
